﻿@{
    ViewBag.Title = "Index";
}
<script type="text/javascript">
    function Myfunc() {
            var tmp = window.location
            var t = "http://localhost:1447/Net/Index/?name=" + document.getElementById("name").innerHTML + "&";

            var q = "&num=" + document.getElementById("num").innerHTML;
            window.location = t + q;
        }
        setInterval(Myfunc, 1000);
    </script>
<h2>Index</h2>
<p id="name">@ViewBag.name</p>
<p id="num">@ViewBag.num</p>
<p id="answer">@ViewBag.answer</p>
